<p id="notice"><%= notice %></p>
<div class ="b" style="width: 250; height: 310;">
	<%=image_tag("/assets/#{@booktable.image}",:height => 310, :width =>250)%>
	</div>

<div class ="a"  style="width: 250; height:400; padding-left: 10px; background-color: gray;">

<p>
  <b><%= t(:namebook)%> </b>
  <%= @booktable.nameBook %>
</p>

<p>
  <b><%= t(:nameauthor)%> </b>
  <%= @booktable.nameAuthor %>
</p>

<p>
  <b><%= t(:typebook)%> </b>
  <%= @booktable.typeBook %>
</p>

<p>
  <b> <%= t(:quantity)%> </b>
  <%= @booktable.quantity %>
</p>
<p>
  <b> <%= t(:description) %> </b><br>
  <%= @booktable.decription %>
</p>
 <%if @user ==-1%>
    <%else%>
	    <%if 	@user.typeUser!='0'%>
	   <%= link_to t(:edit), edit_booktable_path(@booktable) %> |
		<%= link_to t(:destroy), booktables_path %>|
		<%= link_to t(:exit), root_path %>
	    <%else%>
	   <%if @booktable.quantity<=1%>
	   <%= t(:cannotborw)%>
	   <%else%>
	     <%= link_to t(:borrowbook), :controller => "muonsaches", :action => "new", :id => @booktable.id%>
	     <% end%>
	    <%end%>
	     <%end%>

</div>
